<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="vue.js"></script>
</head>
<body>

    <!-- 准备一个容器 -->
        <div id="root">
            <ul>
                <li v-for="p  in  persons"> {{p.name}} - {{p.age}}</li>
            </ul>
        </div>

      <script type="text/javascript">
             Vue.config.productionTip = false

             new Vue({
                el:'#root',
                data:{
                    persons:[
                       {id:'001',name:'jack',age:20}, 
                       {id:'002',name:'wank',age:25}, 
                       {id:'003',name:'link',age:28}, 
                    ]
                }
             });
      </script>  
</body>
</html>